<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:template name="rowset">
		<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
		<xsl:choose>
			<xsl:when test="//page/table_style = 1">
				<table cellpadding="2" cellspacing="1" width="100%" align="center">
					<tr bgcolor="{$header_bg}">
						<td class="listtitle" style="color:{$bg_pagecolor};">&#160;Photo</td>
						<td class="listtitle" align="center" style="color:{$bg_pagecolor};">&#160;Loa,&#160;<xsl:value-of select="/page/fm_list_op"/><br/>Year<br/>Price</td>
						<td class="listtitle" align="center" style="color:{$bg_pagecolor};">&#160;Builder<br/>Category<br/>Model</td>
						<td class="listtitle" style="color:{$bg_pagecolor};">&#160;Engine</td>
						<td class="listtitle" style="color:{$bg_pagecolor};">&#160;Location</td>
						<td class="listtitle" align="right" style="color:{$bg_pagecolor};">&#160;Media<br/>Communications</td>
					</tr>
					<xsl:for-each select="/page/rowset[@id='vessel_list_photo']/data/row">
						<xsl:variable name="vessels_id" select="col[@name='vessels_id']"/>
						<xsl:variable name="builder" select="col[@name='manufactorer']"/>
						<xsl:variable name="vname" select="col[@name='name']"/>
						<xsl:if test="(position() mod //page/advertisements/advertisement/between=0) and string-length(//page/advertisements/advertisement/textHTML)>0">
							<xsl:value-of select="//page/advertisements/advertisement/textHTML" disable-output-escaping="yes"/>
						</xsl:if>
						<tr>
							<xsl:choose>
								<xsl:when test="position() mod 2 != 0">
									<xsl:attribute name="bgcolor"><xsl:value-of select="$bgcolor"/></xsl:attribute>
								</xsl:when>
								<xsl:otherwise>
									<xsl:attribute name="bgcolor"><xsl:value-of select="$color_right_info"/></xsl:attribute>
								</xsl:otherwise>
							</xsl:choose>
							<td title="{$vname}" valign="top" style="border-bottom-width: 1px; border-bottom-color: {$color_right_info}; border-bottom-style: solid;">
								<xsl:if test="//page/view_photos = 1">
									<xsl:choose>
										<xsl:when test="/page/theme = 1">
											<a href="main.asp?-vessel_basic_info.asp-&amp;vessels_id={$vessels_id}&amp;curr_id={//page/curr_id}&amp;vd=1" class="linkbold">
												<xsl:choose>
													<xsl:when test="string-length(col[@name='vessel_image_file'])>4 and ../../@id='vessel_list_photo'">
														<img src="{$media_path}/{col[@name='vessel_image_file']}" border="1" style="border-color:{$color_main_first1};" alt="YACHT ID#{$vessels_id}" hspace="2" vspace="2"/>
													</xsl:when>
													<xsl:otherwise>
														<img src="{$media_path}/image.asp?vessel={$vessels_id}&amp;img=no_photo.jpg&amp;w=80&amp;h=60&amp;companies_id={//page/member_company_id}" border="1" style="border-color:{$color_main_first1};" alt="There is no main profile photo for YACHT ID#{$vessels_id}"/>
													</xsl:otherwise>
												</xsl:choose>
											</a>
										</xsl:when>
										<xsl:otherwise>
											<a href="main.asp?-vessel_basic_info.asp-&amp;vessels_id={$vessels_id}&amp;curr_id={//page/curr_id}" class="linkbold">
												<xsl:choose>
													<xsl:when test="string-length(col[@name='vessel_image_file'])>4 and ../../@id='vessel_list_photo'">
														<img src="{$media_path}/{col[@name='vessel_image_file']}" border="1" style="border-color:{$color_main_first1};" alt="YACHT ID#{$vessels_id}" hspace="2" vspace="2"/>
													</xsl:when>
													<xsl:otherwise>
														<img src="{$media_path}/image.asp?vessel={$vessels_id}&amp;img=no_photo.jpg&amp;w=80&amp;h=60&amp;companies_id={//page/member_company_id}" border="1" style="border-color:{$color_main_first1};" alt="There is no main profile photo for YACHT ID#{$vessels_id}"/>
													</xsl:otherwise>
												</xsl:choose>
											</a>									
										</xsl:otherwise>
									</xsl:choose>
									<br/>
								</xsl:if>
								<a href="main.asp?-vessel_basic_info.asp-&amp;vessels_id={$vessels_id}&amp;curr_id={//page/curr_id}" class="linkbold"><font color="{$color_main_first1}">More Info</font></a>
							</td>
							<td valign="top" style="border-bottom-width: 1px; border-bottom-color: {$color_right_info}; border-bottom-style: solid;">
								<xsl:if test="string-length(col[@name='length']) > 0">
									<xsl:call-template name="length">
										<xsl:with-param name="value"><xsl:value-of select="col[@name='length']"/></xsl:with-param>
									</xsl:call-template>
									<br/>
								</xsl:if>
								<xsl:if test="string-length(col[@name='built_in_year']) != 0">
									MFG <xsl:value-of select="col[@name='built_in_year']"/>
									<xsl:if test="string-length(col[@name='model_year']) != 0 or string-length(col[@name='refit_year']) != 0">
										,&#160;
									</xsl:if>
								</xsl:if>
								<xsl:if test="string-length(col[@name='model_year']) != 0">
									Model <xsl:value-of select="col[@name='model_year']"/>
									<xsl:if test="string-length(col[@name='refit_year']) != 0">
										,&#160;
									</xsl:if>
								</xsl:if>
								<xsl:if test="string-length(col[@name='refit_year']) != 0">
									RF <xsl:value-of select="col[@name='refit_year']"/>
								</xsl:if>
								<br/>
								<div align="left">
									<xsl:if test="col[@name='isFractional']='1'"><xsl:attribute name="style">background-color:E2E42F; width:105px; padding-bottom: 3px; margin-top: 5px; </xsl:attribute></xsl:if>
								<xsl:choose>
									<xsl:when test="col[@name='poa_price']='1'"><b><nobr>Price On Application</nobr></b></xsl:when>
									<xsl:otherwise>
										<nobr>
											<xsl:if test="not(col[@name='enter_currency_id'] = //page/curr_id)">(</xsl:if>
											<xsl:call-template name="price">
				  								<xsl:with-param name="value"><xsl:value-of select="col[@name='price']"/></xsl:with-param>
											</xsl:call-template>
											<xsl:if test="not(col[@name='enter_currency_id'] = //page/curr_id)">) Approx.</xsl:if>
											<xsl:value-of select="//page/curr_list_op"/>
											<xsl:if test="not(col[@name='enter_currency_id'] = //page/curr_id)">
			  									<br/>
												<xsl:call-template name="price">
					  								<xsl:with-param name="value"><xsl:value-of select="col[@name='enter_price']"/></xsl:with-param>
												</xsl:call-template>
												<xsl:value-of select="col[@name='enter_currency_symbol']"/>
											</xsl:if>
										</nobr>
									</xsl:otherwise>				
								</xsl:choose>
								</div>
								<xsl:if test="col[@name='isFractional']='1'">
									<div align="left"><nobr><strong>1/<xsl:value-of select="col[@name='FracAmount']"/> Fractional Share</strong></nobr></div>
								</xsl:if>
							</td>
							<td valign="top" style="border-bottom-width: 1px; border-bottom-color: {$color_right_info}; border-bottom-style: solid;">
								<xsl:value-of select="substring(col[@name='manufactorer'],1,50)" disable-output-escaping="yes"/>
								<xsl:if test="string-length(col[@name='manufactorer']) > 50">...</xsl:if>
								<xsl:if test="string-length(col[@name='category']) > 0">
									<br/><xsl:value-of select="col[@name='category']"/>
								</xsl:if>
								<xsl:if test="string-length(col[@name='model']) != 0">
									<br/><xsl:value-of select="col[@name='model']"/>
								</xsl:if>
							</td>
							<td valign="top" style="border-bottom-width: 1px; border-bottom-color: {$color_right_info}; border-bottom-style: solid;">
								<xsl:call-template name="engine"/>
							</td>
							<td valign="top" style="border-bottom-width: 1px; border-bottom-color: {$color_right_info}; border-bottom-style: solid;">
								<nobr>
									<xsl:call-template name="location_table">
										<xsl:with-param name="country"><xsl:value-of select="col[@name='country']"/></xsl:with-param>
										<xsl:with-param name="city"><xsl:value-of select="col[@name='city']"/></xsl:with-param>
										<xsl:with-param name="state"><xsl:value-of select="col[@name='state']"/></xsl:with-param>
									</xsl:call-template>
								</nobr>
							</td>
							<td valign="top" align="right" style="border-bottom-width: 1px; border-bottom-color: {$color_right_info}; border-bottom-style: solid;">
								<xsl:if test="col[@name='ss'] > '0'">
									<a href="#">
										<xsl:attribute name="title">YACHT ID#<xsl:value-of select="$vessels_id"/> has <xsl:value-of select="col[@name='ss']"/> image(s)</xsl:attribute>
										<xsl:attribute name="onClick">
											window.open('main.asp?-vessel_photos.asp-fvessel_id=<xsl:value-of select="$vessels_id"/>',null,'height=500,width=600,resizable=yes,scrollbars=yes')
										</xsl:attribute>
										<img src="{$img_path_templates}/{$header_bg_color}/buttons/camera.gif" border="0" hspace="2" vspace="4">
											<xsl:attribute name="alt">YACHT ID#<xsl:value-of select="$vessels_id"/> has <xsl:value-of select="col[@name='ss']"/> image(s)</xsl:attribute>
										</img>
									</a>
								</xsl:if>
								<xsl:if test="col[@name='vr'] > '0'">
									<a href="#" title="YACHT ID#{$vessels_id} has virtual tour(s)">
										<xsl:attribute name="onClick">
											window.open('main.asp?-preview_ivr.asp-fvessel_id=<xsl:value-of select="$vessels_id"/>&amp;com',null,'height=500,width=600,resizable=yes,scrollbars=yes')
										</xsl:attribute>
										<img src="{$img_path_templates}/{$header_bg_color}/buttons/vt.gif" border="0" hspace="2" vspace="4"/>
									</a>
								</xsl:if>
								<xsl:if test="col[@name='sv'] > '0'">
									<a href="#" title="YACHT ID#{$vessels_id} has streaming video(s)">
										<xsl:attribute name="onClick">
											window.open('main.asp?-preview_asf.asp-fvessel_id=<xsl:value-of select="$vessels_id"/>',null,'height=500,width=600,resizable=yes,scrollbars=yes')
										</xsl:attribute>
										<img src="{$img_path_templates}/{$header_bg_color}/buttons/sv.gif" border="0" hspace="2" vspace="4"/>
									</a>
								</xsl:if>
								<xsl:if test="col[@name='eb'] >= '0'">
									<a href="#" title="Print Yacht ID#{$vessels_id} Listing" class="linkbold">
										<xsl:choose>
											<xsl:when test="//page/use_own_footer = 1">
												<xsl:attribute name="onClick">
													window.open('<xsl:value-of select="$media_path"/>/brochure_generate_1.asp?vessel_id=<xsl:value-of select="$vessels_id"/>&amp;CompanyID=<xsl:value-of select="//page/member_company_id"/>&amp;MemberID=<xsl:value-of select="//page/member_company_id"/>&amp;AccessLevel=<xsl:value-of select="//page/access_level"/>&amp;int_login_id=<xsl:value-of select="//page/login_id"/>&amp;blnPicInlude=<xsl:value-of select="//page/BrochurePreferences/blnPicInclude"/>&amp;blnPrintPageNumbers=<xsl:value-of select="//page/BrochurePreferences/blnPrintPageNumbers"/>&amp;blnPhotos=<xsl:value-of select="//page/BrochurePreferences/blnPhotos"/>&amp;blnNoImage=<xsl:value-of select="//page/BrochurePreferences/blnNoImage"/>&amp;blnOnePage=<xsl:value-of select="//page/BrochurePreferences/blnOnePage"/>&amp;blnQuality=1&amp;blnIncludeLogo=<xsl:value-of select="//page/BrochurePreferences/blnIncludeLogo"/>&amp;blnIncludeContact=5&amp;blnUseHFSpace=<xsl:value-of select="//page/BrochurePreferences/blnUseHFSpace"/>&amp;blnIncludeDetails=<xsl:value-of select="//page/BrochurePreferences/blnIncludeDetails"/>&amp;blnCoverInlude=<xsl:value-of select="//page/BrochurePreferences/blnCoverInlude"/>&amp;blnBrochuresLayOut=<xsl:value-of select="//page/BrochurePreferences/blnBrochuresLayOut"/>&amp;MainProfilePhotoOnly=<xsl:value-of select="//page/BrochurePreferences/blnMainProfileOnly"/>&amp;fldUserFontFace=<xsl:value-of select="//page/BrochurePreferences/blnFontName"/>&amp;fldUserFontSize=<xsl:value-of select="//page/BrochurePreferences/blnFontSize"/>&amp;blnLayout=<xsl:value-of select="//page/BrochurePreferences/blnLayout"/>&amp;intPaperSize=<xsl:value-of select="//page/BrochurePreferences/intPaperSize"/>&amp;OtherSalesman=-2&amp;curr_id=<xsl:value-of select = "//page/curr_id"/>&amp;measure_id=<xsl:value-of select = "//page/measure_id"/>&amp;ph=1&amp;print_full_listing=1&amp;template=1&amp;blnBrochureConsumer=1',null,'height=500,width=700,resizable=yes,scrollbars=yes')
												</xsl:attribute>
											</xsl:when>
											<xsl:otherwise>
												<xsl:attribute name="onClick">
													window.open('<xsl:value-of select="$media_path"/>/brochure_generate_1.asp?vessel_id=<xsl:value-of select="$vessels_id"/>&amp;CompanyID=<xsl:value-of select="//page/member_company_id"/>&amp;MemberID=<xsl:value-of select="//page/member_company_id"/>&amp;AccessLevel=<xsl:value-of select="//page/access_level"/>&amp;int_login_id=<xsl:value-of select="//page/login_id"/>&amp;blnPicInlude=<xsl:value-of select="//page/BrochurePreferences/blnPicInclude"/>&amp;blnPrintPageNumbers=<xsl:value-of select="//page/BrochurePreferences/blnPrintPageNumbers"/>&amp;blnPhotos=<xsl:value-of select="//page/BrochurePreferences/blnPhotos"/>&amp;blnNoImage=<xsl:value-of select="//page/BrochurePreferences/blnNoImage"/>&amp;blnOnePage=<xsl:value-of select="//page/BrochurePreferences/blnOnePage"/>&amp;blnQuality=1&amp;blnIncludeLogo=<xsl:value-of select="//page/BrochurePreferences/blnIncludeLogo"/>&amp;blnIncludeContact=<xsl:value-of select="//page/BrochurePreferences/blnIncludeContact"/>&amp;blnUseHFSpace=<xsl:value-of select="//page/BrochurePreferences/blnUseHFSpace"/>&amp;blnIncludeDetails=<xsl:value-of select="//page/BrochurePreferences/blnIncludeDetails"/>&amp;blnCoverInlude=<xsl:value-of select="//page/BrochurePreferences/blnCoverInlude"/>&amp;blnBrochuresLayOut=<xsl:value-of select="//page/BrochurePreferences/blnBrochuresLayOut"/>&amp;MainProfilePhotoOnly=<xsl:value-of select="//page/BrochurePreferences/blnMainProfileOnly"/>&amp;fldUserFontFace=<xsl:value-of select="//page/BrochurePreferences/blnFontName"/>&amp;fldUserFontSize=<xsl:value-of select="//page/BrochurePreferences/blnFontSize"/>&amp;blnLayout=<xsl:value-of select="//page/BrochurePreferences/blnLayout"/>&amp;intPaperSize=<xsl:value-of select="//page/BrochurePreferences/intPaperSize"/>&amp;OtherSalesman=-2&amp;curr_id=<xsl:value-of select = "//page/curr_id"/>&amp;measure_id=<xsl:value-of select = "//page/measure_id"/>&amp;ph=1&amp;print_full_listing=1&amp;template=1&amp;blnBrochureConsumer=1',null,'height=500,width=700,resizable=yes,scrollbars=yes')
												</xsl:attribute>
											</xsl:otherwise>
										</xsl:choose>
										<img src="{$img_path_templates}/{$header_bg_color}/buttons/print.gif" border="0" hspace="2" vspace="4"/>
									</a>
								</xsl:if>
								<br/>
								<a href="{$root}main.asp?-email_send.asp-&amp;vessel_id={$vessels_id}&amp;curr_id={//page/curr_id}" title="Send Email">
									<img src="{$img_path_templates}/{$header_bg_color}/buttons/contact_to_broker.gif" border="0" hspace="2" vspace="4"/>
								</a>
								<xsl:if test="string-length(col[@name='im_link']) > 0">
									<a href="{col[@name='im_link']}" title="Chat on-line">
										<img src="{$img_path_templates}/{$header_bg_color}/buttons/chat_online.gif" border="0" hspace="2" vspace="4"/>
									</a>
								</xsl:if>
								<xsl:if test="string-length(col[@name='skype_name']) > 0">
									<a href="skype:{col[@name='skype_name']}?call" title="Skype Me">
										<img src="{$img_path_templates}/{$header_bg_color}/buttons/skypeme.gif" border="0" hspace="2" vspace="4"/>
									</a>
								</xsl:if>
							</td>
						</tr>
					</xsl:for-each>
				</table>
			</xsl:when>
			<xsl:otherwise>
				<table cellpadding="2" cellspacing="2" width="95%" align="center">
					<xsl:for-each select="/page/rowset[@id='vessel_list_photo']/data/row">
						<xsl:if test="(position() mod //page/advertisements/advertisement/between=0) and string-length(//page/advertisements/advertisement/textHTML)>0">
							<xsl:value-of select="//page/advertisements/advertisement/textHTML" disable-output-escaping="yes"/>
						</xsl:if>
						<tr>
							<xsl:if test="not(position() mod 2 = 0)">
								<xsl:variable name="next_position" select="position() + 1"/>
								<xsl:variable name="vessels_id" select="col[@name='vessels_id']"/>
								<xsl:variable name="builder" select="col[@name='manufactorer']"/>
								<xsl:variable name="vname" select="col[@name='name']"/>
								<xsl:variable name="next_vessels_id" select="../row[$next_position]/col[@name='vessels_id']"/>
								<xsl:variable name="next_builder" select="../row[$next_position]/col[@name='manufactorer']"/>
								<xsl:variable name="next_vname" select="../row[$next_position]/col[@name='name']"/>
								
								<td width="49%" valign="top">
									<table cellpadding="1" cellspacing="1" width="100%" align="center">
										<tr>
											<td colspan="2" bgcolor="{$header_bg}" class="listtitle" style="color:{$bg_pagecolor};">
												&#160;
												<xsl:if test="string-length(col[@name='length']) != 0">
													<xsl:call-template name="length">
														<xsl:with-param name="value"><xsl:value-of select="col[@name='length']"/></xsl:with-param>
													</xsl:call-template>
													<xsl:if test="string-length(col[@name='model_year']) != 0 or string-length(col[@name='category']) != 0">
														&#160;
													</xsl:if>
												</xsl:if>
												<xsl:if test="string-length(col[@name='model_year']) != 0">
													<xsl:value-of select="col[@name='model_year']"/>
													<xsl:if test="string-length(col[@name='category']) != 0">
														&#160;
													</xsl:if>
												</xsl:if>
												<xsl:if test="string-length(col[@name='category']) != 0">
													<xsl:value-of select="col[@name='category']"/>
												</xsl:if>
											</td>
										</tr>
										<tr>
											<td width="70%">
												<table cellpadding="2" cellspacing="1" width="100%" bgcolor="{$bg_pagecolor}" align="center">
													<tr>
														<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">LOA</font>&#160;</td>
														<td bgcolor="{$color_right_info}">
															<xsl:if test="string-length(col[@name='length']) = 0">&#160;</xsl:if>
															<xsl:call-template name="length">
																<xsl:with-param name="value"><xsl:value-of select="col[@name='length']"/></xsl:with-param>
															</xsl:call-template>
														</td>
													</tr>
													<tr>
														<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">Years</font>&#160;</td>
														<td bgcolor="{$bg_pagecolor}">
															<xsl:if test="string-length(col[@name='built_in_year']) != 0">
																MFG <xsl:value-of select="col[@name='built_in_year']"/>
																<xsl:if test="string-length(col[@name='model_year']) != 0 or string-length(col[@name='refit_year']) != 0">
																	,&#160;
																</xsl:if>
															</xsl:if>
															<xsl:if test="string-length(col[@name='model_year']) != 0">
																Model <xsl:value-of select="col[@name='model_year']"/>
																<xsl:if test="string-length(col[@name='refit_year']) != 0">
																	,&#160;
																</xsl:if>
															</xsl:if>
															<xsl:if test="string-length(col[@name='refit_year']) != 0">
																RF <xsl:value-of select="col[@name='refit_year']"/>
															</xsl:if>
														</td>
													</tr>
													<tr>
														<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">MFG</font>&#160;</td>
														<td bgcolor="{$color_right_info}">
															<xsl:if test="string-length(col[@name='manufactorer']) = 0">&#160;</xsl:if>
															<xsl:value-of select="substring(col[@name='manufactorer'], 1, 40)" disable-output-escaping="yes"/>
															<xsl:if test="string-length(col[@name='manufactorer']) > 40">...</xsl:if>
														</td>
													</tr>
													<tr>
														<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">Model</font>&#160;</td>
														<td bgcolor="{$bg_pagecolor}">
															<xsl:if test="string-length(col[@name='model']) = 0">&#160;</xsl:if>
															<xsl:value-of select="substring(col[@name='model'], 1, 40)" disable-output-escaping="yes"/>
															<xsl:if test="string-length(col[@name='model']) > 40">...</xsl:if>
														</td>
													</tr>
													<tr>
														<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">Price</font>&#160;</td>
														<td>
															<xsl:choose>
																<xsl:when test="col[@name='isFractional']='1'"><xsl:attribute name="bgcolor">#E2E42F</xsl:attribute></xsl:when>
																<xsl:otherwise><xsl:attribute name="bgcolor"><xsl:value-of select="$color_right_info"/></xsl:attribute></xsl:otherwise>
															</xsl:choose>
															<xsl:choose>
																<xsl:when test="col[@name='poa_price']='1'"><b><nobr>Price On Application</nobr></b></xsl:when>
																<xsl:otherwise>
																	<xsl:if test="col[@name='price'] = '0'">&#160;</xsl:if>
																	<xsl:call-template name="price">
																		<xsl:with-param name="value"><xsl:value-of select="col[@name='price']"/></xsl:with-param>
																	</xsl:call-template>
																	<xsl:if test="col[@name='price'] > '0'">&#160;<xsl:value-of select="//page/curr_list_op"/></xsl:if>
																	<xsl:if test="col[@name='prev_price'] > '0'">&#160;/&#160;<s><xsl:value-of select="col[@name='prev_price']"/></s>&#160;<xsl:value-of select="//page/curr_list_op"/></xsl:if>
																</xsl:otherwise>
															</xsl:choose>
															<xsl:if test="col[@name='isFractional']='1'">
																<div align="left"><nobr><strong>1/<xsl:value-of select="col[@name='FracAmount']"/> Fractional Share</strong></nobr></div>
															</xsl:if>
														</td>
													</tr>
													<tr>
														<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">Location</font>&#160;</td>
														<td bgcolor="{$bg_pagecolor}">
															&#160;
															<xsl:call-template name="location">
																<xsl:with-param name="country"><xsl:value-of select="col[@name='country']"/></xsl:with-param>
																<xsl:with-param name="city"><xsl:value-of select="col[@name='city']"/></xsl:with-param>
																<xsl:with-param name="state"><xsl:value-of select="col[@name='state']"/></xsl:with-param>
															</xsl:call-template>
														</td>
													</tr>
												</table>
											</td>
	 										<td width="30%">
												<center>
													<xsl:choose>
														<xsl:when test="/page/theme = 1">
															<a href="main.asp?-vessel_basic_info.asp-&amp;vessels_id={$vessels_id}&amp;curr_id={//page/curr_id}&amp;vd=1" class="linkbold">
																<xsl:choose> 
																	<xsl:when test="string-length(col[@name='vessel_image_file'])>4 and ../../@id='vessel_list_photo'">
																		<img src="{$media_path}/{col[@name='vessel_image_file']}" border="1" style="border-color:{$color_main_first1};" alt="YACHT ID#{$vessels_id}"/>
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:choose>
																			<xsl:when test="//page/view_photos='1'">
																				<img src="{$media_path}/image.asp?vessel={$vessels_id}&amp;img=no_photo.jpg&amp;w=80&amp;h=60&amp;companies_id={//page/member_company_id}" border="1" style="border-color:{$color_main_first1};" alt="There is no main profile photo for YACHT ID#{$vessels_id}"/>
																			</xsl:when>
																			<xsl:otherwise>
																				<font color="{$color_main_first1}">View vessel<br/>basic info</font>
																			</xsl:otherwise>
																		</xsl:choose>
																	</xsl:otherwise>
																</xsl:choose>
															</a>
														</xsl:when>
														<xsl:otherwise>
															<a href="main.asp?-vessel_basic_info.asp-&amp;vessels_id={$vessels_id}&amp;curr_id={//page/curr_id}" class="linkbold">
																<xsl:choose> 
																	<xsl:when test="string-length(col[@name='vessel_image_file'])>4 and ../../@id='vessel_list_photo'">
																		<img src="{$media_path}/{col[@name='vessel_image_file']}" border="1" style="border-color:{$color_main_first1};" alt="YACHT ID#{$vessels_id}"/>
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:choose>
																			<xsl:when test="//page/view_photos='1'">
																				<img src="{$media_path}/image.asp?vessel={$vessels_id}&amp;img=no_photo.jpg&amp;w=80&amp;h=60&amp;companies_id={//page/member_company_id}" border="1" style="border-color:{$color_main_first1};" alt="There is no main profile photo for YACHT ID#{$vessels_id}"/>
																			</xsl:when>
																			<xsl:otherwise>
																				<font color="{$color_main_first1}">View vessel<br/>basic info</font>
																			</xsl:otherwise>
																		</xsl:choose>
																	</xsl:otherwise>
																</xsl:choose>
															</a>													
														</xsl:otherwise>
													</xsl:choose>
													<br/>
													<xsl:if test="col[@name='ss'] > '0'">
 														<a href="#">
															<xsl:attribute name="title">YACHT ID#<xsl:value-of select="$vessels_id"/> has <xsl:value-of select="col[@name='ss']"/> image(s)</xsl:attribute>
															<xsl:attribute name="onClick">
																window.open('main.asp?-vessel_photos.asp-fvessel_id=<xsl:value-of select="$vessels_id"/>',null,'height=500,width=600,resizable=yes,scrollbars=yes')
															</xsl:attribute>
															<img src="{$img_path_templates}/{$header_bg_color}/buttons/camera.gif" border="0" hspace="2" vspace="4">
																<xsl:attribute name="title">YACHT ID#<xsl:value-of select="$vessels_id"/> has <xsl:value-of select="col[@name='ss']"/> image(s)</xsl:attribute>
															</img>
														</a>
													</xsl:if>
													<xsl:if test="col[@name='vr'] > '0'">
														<a href="#" title="YACHT ID#{$vessels_id} has virtual tour(s)">
															<xsl:attribute name="onClick">
																window.open('main.asp?-preview_ivr.asp-fvessel_id=<xsl:value-of select="$vessels_id"/>&amp;com',null,'height=500,width=600,resizable=yes,scrollbars=yes')
															</xsl:attribute>
															<img src="{$img_path_templates}/{$header_bg_color}/buttons/vt.gif" border="0" hspace="2" vspace="4"/>
														</a>
													</xsl:if>
													<xsl:if test="col[@name='sv'] > '0'">
														<a href="#" title="YACHT ID#{$vessels_id} has streaming video(s)">
															<xsl:attribute name="onClick">
																window.open('main.asp?-preview_asf.asp-fvessel_id=<xsl:value-of select="$vessels_id"/>',null,'height=500,width=600,resizable=yes,scrollbars=yes')
															</xsl:attribute>
															<img src="{$img_path_templates}/{$header_bg_color}/buttons/sv.gif" border="0" hspace="2" vspace="4"/>
														</a>
													</xsl:if>
											 		<xsl:if test="col[@name='eb'] >= '0'">
														<a href="#" title="Print Yacht ID#{$vessels_id} Listing" class="linkbold">
															<xsl:choose>
																<xsl:when test="//page/use_own_footer = 1">
																	<xsl:attribute name="onClick">
																		window.open('<xsl:value-of select="$media_path"/>/brochure_generate_1.asp?vessel_id=<xsl:value-of select="$vessels_id"/>&amp;CompanyID=<xsl:value-of select="//page/member_company_id"/>&amp;MemberID=<xsl:value-of select="//page/member_company_id"/>&amp;AccessLevel=<xsl:value-of select="//page/access_level"/>&amp;int_login_id=<xsl:value-of select="//page/login_id"/>&amp;blnPicInlude=<xsl:value-of select="//page/BrochurePreferences/blnPicInclude"/>&amp;blnPrintPageNumbers=<xsl:value-of select="//page/BrochurePreferences/blnPrintPageNumbers"/>&amp;blnPhotos=<xsl:value-of select="//page/BrochurePreferences/blnPhotos"/>&amp;blnNoImage=<xsl:value-of select="//page/BrochurePreferences/blnNoImage"/>&amp;blnOnePage=<xsl:value-of select="//page/BrochurePreferences/blnOnePage"/>&amp;blnQuality=1&amp;blnIncludeLogo=<xsl:value-of select="//page/BrochurePreferences/blnIncludeLogo"/>&amp;blnIncludeContact=5&amp;blnUseHFSpace=<xsl:value-of select="//page/BrochurePreferences/blnUseHFSpace"/>&amp;blnIncludeDetails=<xsl:value-of select="//page/BrochurePreferences/blnIncludeDetails"/>&amp;blnCoverInlude=<xsl:value-of select="//page/BrochurePreferences/blnCoverInlude"/>&amp;blnBrochuresLayOut=<xsl:value-of select="//page/BrochurePreferences/blnBrochuresLayOut"/>&amp;MainProfilePhotoOnly=<xsl:value-of select="//page/BrochurePreferences/blnMainProfileOnly"/>&amp;fldUserFontFace=<xsl:value-of select="//page/BrochurePreferences/blnFontName"/>&amp;fldUserFontSize=<xsl:value-of select="//page/BrochurePreferences/blnFontSize"/>&amp;blnLayout=<xsl:value-of select="//page/BrochurePreferences/blnLayout"/>&amp;intPaperSize=<xsl:value-of select="//page/BrochurePreferences/intPaperSize"/>&amp;OtherSalesman=-2&amp;curr_id=<xsl:value-of select = "//page/curr_id"/>&amp;measure_id=<xsl:value-of select = "//page/measure_id"/>&amp;ph=1&amp;print_full_listing=1&amp;template=1&amp;blnBrochureConsumer=1',null,'height=500,width=700,resizable=yes,scrollbars=yes')
																	</xsl:attribute>
																</xsl:when>
																<xsl:otherwise>
																	<xsl:attribute name="onClick">
																		window.open('<xsl:value-of select="$media_path"/>/brochure_generate_1.asp?vessel_id=<xsl:value-of select="$vessels_id"/>&amp;CompanyID=<xsl:value-of select="//page/member_company_id"/>&amp;MemberID=<xsl:value-of select="//page/member_company_id"/>&amp;AccessLevel=<xsl:value-of select="//page/access_level"/>&amp;int_login_id=<xsl:value-of select="//page/login_id"/>&amp;blnPicInlude=<xsl:value-of select="//page/BrochurePreferences/blnPicInclude"/>&amp;blnPrintPageNumbers=<xsl:value-of select="//page/BrochurePreferences/blnPrintPageNumbers"/>&amp;blnPhotos=<xsl:value-of select="//page/BrochurePreferences/blnPhotos"/>&amp;blnNoImage=<xsl:value-of select="//page/BrochurePreferences/blnNoImage"/>&amp;blnOnePage=<xsl:value-of select="//page/BrochurePreferences/blnOnePage"/>&amp;blnQuality=1&amp;blnIncludeLogo=<xsl:value-of select="//page/BrochurePreferences/blnIncludeLogo"/>&amp;blnIncludeContact=<xsl:value-of select="//page/BrochurePreferences/blnIncludeContact"/>&amp;blnUseHFSpace=<xsl:value-of select="//page/BrochurePreferences/blnUseHFSpace"/>&amp;blnIncludeDetails=<xsl:value-of select="//page/BrochurePreferences/blnIncludeDetails"/>&amp;blnCoverInlude=<xsl:value-of select="//page/BrochurePreferences/blnCoverInlude"/>&amp;blnBrochuresLayOut=<xsl:value-of select="//page/BrochurePreferences/blnBrochuresLayOut"/>&amp;MainProfilePhotoOnly=<xsl:value-of select="//page/BrochurePreferences/blnMainProfileOnly"/>&amp;fldUserFontFace=<xsl:value-of select="//page/BrochurePreferences/blnFontName"/>&amp;fldUserFontSize=<xsl:value-of select="//page/BrochurePreferences/blnFontSize"/>&amp;blnLayout=<xsl:value-of select="//page/BrochurePreferences/blnLayout"/>&amp;intPaperSize=<xsl:value-of select="//page/BrochurePreferences/intPaperSize"/>&amp;OtherSalesman=-2&amp;curr_id=<xsl:value-of select = "//page/curr_id"/>&amp;measure_id=<xsl:value-of select = "//page/measure_id"/>&amp;ph=1&amp;print_full_listing=1&amp;template=1&amp;blnBrochureConsumer=1',null,'height=500,width=700,resizable=yes,scrollbars=yes')
																	</xsl:attribute>
																</xsl:otherwise>
															</xsl:choose>
															<img src="{$img_path_templates}/{$header_bg_color}/buttons/print.gif" border="0" hspace="2" vspace="4"/>
														</a>
													</xsl:if>
													<br/>
													<a href="main.asp?-vessel_basic_info.asp-&amp;vessels_id={$vessels_id}&amp;curr_id={//page/curr_id}" class="linkbold"><font color="{$color_main_first1}">More Info</font></a>
												</center>
											</td>
										</tr>
										<tr>
											<td colspan="2">
												<table cellpadding="2" cellspacing="1" bgcolor="{$bg_pagecolor}" width="100%">
													<tr>
														<td bgcolor="{$bg_c_bot}" class="titleblack">&#160;
															<font color="{$link_c_menu}">Communications:</font>
															&#160;&#160;
															<a href="{$root}main.asp?-email_send.asp-&amp;vessel_id={$vessels_id}&amp;curr_id={//page/curr_id}" title="Send Email" class="linkbold"><font color="{$link_c_menu}">Send Email</font></a>
															<xsl:if test="string-length(col[@name='im_link']) > 0">
																&#160;&#160;
																<a href="{col[@name='im_link']}" title="Chat on-line" class="linkbold"><font color="{$link_c_menu}">Chat on-line</font></a>
															</xsl:if>
															<xsl:if test="string-length(col[@name='skype_name']) > 0">
																&#160;&#160;
																<a href="skype:{col[@name='skype_name']}?call" title="Skype Me" class="linkbold"><font color="{$link_c_menu}">Skype Me</font></a>
															</xsl:if>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
								<td width="2%">&#160;</td>
								<xsl:if test="not($next_position > last())">
									<td width="49%" valign="top">
										<table cellpadding="1" cellspacing="1" width="100%" align="center">
											<tr>
												<td colspan="2" bgcolor="{$header_bg}" class="listtitle" style="color:{$bg_pagecolor};">
													&#160;
													<xsl:if test="string-length(../row[$next_position]/col[@name='length']) != 0">
														<xsl:call-template name="length">
															<xsl:with-param name="value"><xsl:value-of select="../row[$next_position]/col[@name='length']"/></xsl:with-param>
														</xsl:call-template>
														<xsl:if test="string-length(../row[$next_position]/col[@name='model_year']) != 0 or string-length(../row[$next_position]/col[@name='category']) != 0">
															&#160;
														</xsl:if>
													</xsl:if>
													<xsl:if test="string-length(../row[$next_position]/col[@name='model_year']) != 0">
														<xsl:value-of select="../row[$next_position]/col[@name='model_year']"/>
														<xsl:if test="string-length(../row[$next_position]/col[@name='category']) != 0">
															&#160;
														</xsl:if>
													</xsl:if>
													<xsl:if test="string-length(../row[$next_position]/col[@name='category']) != 0">
														<xsl:value-of select="../row[$next_position]/col[@name='category']"/>
													</xsl:if>
												</td>
											</tr>
											<tr>
												<td width="70%">
													<table cellpadding="2" cellspacing="1" width="100%" bgcolor="{$bg_pagecolor}" align="center">
														<tr>
															<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">LOA</font>&#160;</td>
															<td bgcolor="{$color_right_info}">
																<xsl:if test="string-length(../row[$next_position]/col[@name='length']) = 0">&#160;</xsl:if>
																<xsl:call-template name="length">
																	<xsl:with-param name="value"><xsl:value-of select="../row[$next_position]/col[@name='length']"/></xsl:with-param>
																</xsl:call-template>
															</td>
														</tr>
														<tr>
															<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">Years</font>&#160;</td>
															<td bgcolor="{$bg_pagecolor}">
																<xsl:if test="string-length(../row[$next_position]/col[@name='built_in_year']) != 0">
																	MFG <xsl:value-of select="../row[$next_position]/col[@name='built_in_year']"/>
																	<xsl:if test="string-length(../row[$next_position]/col[@name='model_year']) != 0 or string-length(../row[$next_position]/col[@name='refit_year']) != 0">
																		,&#160;
																	</xsl:if>
																</xsl:if>
																<xsl:if test="string-length(../row[$next_position]/col[@name='model_year']) != 0">
																	Model <xsl:value-of select="../row[$next_position]/col[@name='model_year']"/>
																	<xsl:if test="string-length(../row[$next_position]/col[@name='refit_year']) != 0">
																		,&#160;
																	</xsl:if>
																</xsl:if>
																<xsl:if test="string-length(../row[$next_position]/col[@name='refit_year']) != 0">
																	RF <xsl:value-of select="../row[$next_position]/col[@name='refit_year']"/>
																</xsl:if>
															</td>
														</tr>
														<tr>
															<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">MFG</font>&#160;</td>
															<td bgcolor="{$color_right_info}">
																<xsl:if test="string-length(../row[$next_position]/col[@name='manufactorer']) = 0">&#160;</xsl:if>
																<xsl:value-of select="substring(../row[$next_position]/col[@name='manufactorer'], 1, 40)" disable-output-escaping="yes"/>
																<xsl:if test="string-length(../row[$next_position]/col[@name='manufactorer']) > 40">...</xsl:if>
															</td>
														</tr>
														<tr>
															<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">Model</font>&#160;</td>
															<td bgcolor="{$bg_pagecolor}">
																<xsl:if test="string-length(../row[$next_position]/col[@name='model']) = 0">&#160;</xsl:if>
																<xsl:value-of select="substring(../row[$next_position]/col[@name='model'], 1, 40)" disable-output-escaping="yes"/>
																<xsl:if test="string-length(../row[$next_position]/col[@name='model']) > 40">...</xsl:if>
															</td>
														</tr>
														<tr>
															<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">Price</font>&#160;</td>
															<td>
																<xsl:choose>
																	<xsl:when test="../row[$next_position]/col[@name='isFractional']='1'"><xsl:attribute name="bgcolor">#E2E42F</xsl:attribute></xsl:when>
																	<xsl:otherwise><xsl:attribute name="bgcolor"><xsl:value-of select="$color_right_info"/></xsl:attribute></xsl:otherwise>
																</xsl:choose>
																<xsl:choose>
																	<xsl:when test="../row[$next_position]/col[@name='poa_price']='1'"><b><nobr>Price On Application</nobr></b></xsl:when>
																	<xsl:otherwise>
																		<xsl:if test="../row[$next_position]/col[@name='price'] = '0'">&#160;</xsl:if>
																		<xsl:call-template name="price">
																			<xsl:with-param name="value"><xsl:value-of select="../row[$next_position]/col[@name='price']"/></xsl:with-param>
																		</xsl:call-template>
																		<xsl:if test="../row[$next_position]/col[@name='price'] > '0'">&#160;<xsl:value-of select="//page/curr_list_op"/></xsl:if>
																		<xsl:if test="../row[$next_position]/col[@name='prev_price'] > '0'">&#160;/&#160;<s><xsl:value-of select="../row[$next_position]/col[@name='prev_price']"/></s>&#160;<xsl:value-of select="//page/curr_list_op"/></xsl:if>
																	</xsl:otherwise>
																</xsl:choose>
																<xsl:if test="../row[$next_position]/col[@name='isFractional']='1'">
																	<div align="left"><nobr><strong>1/<xsl:value-of select="../row[$next_position]/col[@name='FracAmount']"/> Fractional Share</strong></nobr></div>
																</xsl:if>
															</td>
														</tr>
														<tr>
															<td align="left" width="25%" bgcolor="{$bg_c_bot}" class="titleblack">&#160;&#160;<font color="{$link_c_menu}">Location</font>&#160;</td>
															<td bgcolor="{$bg_pagecolor}">
																&#160;
																<xsl:call-template name="location">
																	<xsl:with-param name="country"><xsl:value-of select="../row[$next_position]/col[@name='country']"/></xsl:with-param>
																	<xsl:with-param name="city"><xsl:value-of select="../row[$next_position]/col[@name='city']"/></xsl:with-param>
																	<xsl:with-param name="state"><xsl:value-of select="../row[$next_position]/col[@name='state']"/></xsl:with-param>
																</xsl:call-template>
															</td>
														</tr>
													</table>
												</td>
		 										<td width="30%">
													<center>
														<xsl:choose>
															<xsl:when test="/page/theme = 1">
																<a href="main.asp?-vessel_basic_info.asp-&amp;vessels_id={$next_vessels_id}&amp;curr_id={//page/curr_id}&amp;vd=1" class="linkbold">
																	<xsl:choose> 
																		<xsl:when test="string-length(../row[$next_position]/col[@name='vessel_image_file'])>4 and ../../@id='vessel_list_photo'">
																			<img src="{$media_path}/{../row[$next_position]/col[@name='vessel_image_file']}" border="1" style="border-color=#666666" alt="YACHT ID#{$next_vessels_id}"/>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="//page/view_photos='1'">
																					<img src="{$media_path}/image.asp?vessel={$next_vessels_id}&amp;img=no_photo.jpg&amp;w=80&amp;h=60&amp;companies_id={//page/member_company_id}" border="1" style="border-color:{$color_main_first1};" alt="There is no main profile photo for YACHT ID#{$next_vessels_id}"/>
																				</xsl:when>
																				<xsl:otherwise>
																					<font color="{$color_main_first1}">View vessel<br/>basic info</font>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</a>
															</xsl:when>
															<xsl:otherwise>
																<a href="main.asp?-vessel_basic_info.asp-&amp;vessels_id={$next_vessels_id}&amp;curr_id={//page/curr_id}" class="linkbold">
																	<xsl:choose> 
																		<xsl:when test="string-length(../row[$next_position]/col[@name='vessel_image_file'])>4 and ../../@id='vessel_list_photo'">
																			<img src="{$media_path}/{../row[$next_position]/col[@name='vessel_image_file']}" border="1" style="border-color=#666666" alt="YACHT ID#{$next_vessels_id}"/>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="//page/view_photos='1'">
																					<img src="{$media_path}/image.asp?vessel={$next_vessels_id}&amp;img=no_photo.jpg&amp;w=80&amp;h=60&amp;companies_id={//page/member_company_id}" border="1" style="border-color:{$color_main_first1};" alt="There is no main profile photo for YACHT ID#{$next_vessels_id}"/>
																				</xsl:when>
																				<xsl:otherwise>
																					<font color="{$color_main_first1}">View vessel<br/>basic info</font>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</a>													
															</xsl:otherwise>
														</xsl:choose>
														<br/>
														<xsl:if test="../row[$next_position]/col[@name='ss'] > '0'">
	 														<a href="#">
																<xsl:attribute name="title">YACHT ID#<xsl:value-of select="$next_vessels_id"/> has <xsl:value-of select="../row[$next_position]/col[@name='ss']"/> image(s)</xsl:attribute>
																<xsl:attribute name="onClick">
																	window.open('main.asp?-vessel_photos.asp-fvessel_id=<xsl:value-of select="$next_vessels_id"/>',null,'height=500,width=600,resizable=yes,scrollbars=yes')
																</xsl:attribute>
																<img src="{$img_path_templates}/{$header_bg_color}/buttons/camera.gif" border="0" hspace="2" vspace="4">
																	<xsl:attribute name="title">YACHT ID#<xsl:value-of select="$next_vessels_id"/> has <xsl:value-of select="../row[$next_position]/col[@name='ss']"/> image(s)</xsl:attribute>
																</img>
															</a>
														</xsl:if>
														<xsl:if test="../row[$next_position]/col[@name='vr'] > '0'">
															<a href="#" title="YACHT ID#{$next_vessels_id} has virtual tour(s)">
																<xsl:attribute name="onClick">
																	window.open('main.asp?-preview_ivr.asp-fvessel_id=<xsl:value-of select="$next_vessels_id"/>&amp;com',null,'height=500,width=600,resizable=yes,scrollbars=yes')
																</xsl:attribute>
																<img src="{$img_path_templates}/{$header_bg_color}/buttons/vt.gif" border="0" hspace="2" vspace="4"/>
															</a>
														</xsl:if>
														<xsl:if test="../row[$next_position]/col[@name='sv'] > '0'">
															<a href="#" title="YACHT ID#{$next_vessels_id} has streaming video(s)">
																<xsl:attribute name="onClick">
																	window.open('main.asp?-preview_asf.asp-fvessel_id=<xsl:value-of select="$next_vessels_id"/>',null,'height=500,width=600,resizable=yes,scrollbars=yes')
																</xsl:attribute>
																<img src="{$img_path_templates}/{$header_bg_color}/buttons/sv.gif" border="0" hspace="2" vspace="4"/>
															</a>
														</xsl:if>
												 		<xsl:if test="../row[$next_position]/col[@name='eb'] >= '0'">
															<a href="#" title="Print Yacht ID#{$next_vessels_id} Listing" class="linkbold">
																<xsl:choose>
																	<xsl:when test="//page/use_own_footer = 1">
																		<xsl:attribute name="onClick">
																			window.open('<xsl:value-of select="$media_path"/>/brochure_generate_1.asp?vessel_id=<xsl:value-of select="$next_vessels_id"/>&amp;CompanyID=<xsl:value-of select="//page/member_company_id"/>&amp;MemberID=<xsl:value-of select="//page/member_company_id"/>&amp;AccessLevel=<xsl:value-of select="//page/access_level"/>&amp;int_login_id=<xsl:value-of select="//page/login_id"/>&amp;blnPicInlude=<xsl:value-of select="//page/BrochurePreferences/blnPicInclude"/>&amp;blnPrintPageNumbers=<xsl:value-of select="//page/BrochurePreferences/blnPrintPageNumbers"/>&amp;blnPhotos=<xsl:value-of select="//page/BrochurePreferences/blnPhotos"/>&amp;blnNoImage=<xsl:value-of select="//page/BrochurePreferences/blnNoImage"/>&amp;blnOnePage=<xsl:value-of select="//page/BrochurePreferences/blnOnePage"/>&amp;blnQuality=1&amp;blnIncludeLogo=<xsl:value-of select="//page/BrochurePreferences/blnIncludeLogo"/>&amp;blnIncludeContact=5&amp;blnUseHFSpace=<xsl:value-of select="//page/BrochurePreferences/blnUseHFSpace"/>&amp;blnIncludeDetails=<xsl:value-of select="//page/BrochurePreferences/blnIncludeDetails"/>&amp;blnCoverInlude=<xsl:value-of select="//page/BrochurePreferences/blnCoverInlude"/>&amp;blnBrochuresLayOut=<xsl:value-of select="//page/BrochurePreferences/blnBrochuresLayOut"/>&amp;MainProfilePhotoOnly=<xsl:value-of select="//page/BrochurePreferences/blnMainProfileOnly"/>&amp;fldUserFontFace=<xsl:value-of select="//page/BrochurePreferences/blnFontName"/>&amp;fldUserFontSize=<xsl:value-of select="//page/BrochurePreferences/blnFontSize"/>&amp;blnLayout=<xsl:value-of select="//page/BrochurePreferences/blnLayout"/>&amp;intPaperSize=<xsl:value-of select="//page/BrochurePreferences/intPaperSize"/>&amp;OtherSalesman=-2&amp;curr_id=<xsl:value-of select = "//page/curr_id"/>&amp;measure_id=<xsl:value-of select = "//page/measure_id"/>&amp;ph=1&amp;print_full_listing=1&amp;template=1&amp;blnBrochureConsumer=1',null,'height=500,width=700,resizable=yes,scrollbars=yes')
																		</xsl:attribute>
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:attribute name="onClick">
																			window.open('<xsl:value-of select="$media_path"/>/brochure_generate_1.asp?vessel_id=<xsl:value-of select="$next_vessels_id"/>&amp;CompanyID=<xsl:value-of select="//page/member_company_id"/>&amp;MemberID=<xsl:value-of select="//page/member_company_id"/>&amp;AccessLevel=<xsl:value-of select="//page/access_level"/>&amp;int_login_id=<xsl:value-of select="//page/login_id"/>&amp;blnPicInlude=<xsl:value-of select="//page/BrochurePreferences/blnPicInclude"/>&amp;blnPrintPageNumbers=<xsl:value-of select="//page/BrochurePreferences/blnPrintPageNumbers"/>&amp;blnPhotos=<xsl:value-of select="//page/BrochurePreferences/blnPhotos"/>&amp;blnNoImage=<xsl:value-of select="//page/BrochurePreferences/blnNoImage"/>&amp;blnOnePage=<xsl:value-of select="//page/BrochurePreferences/blnOnePage"/>&amp;blnQuality=1&amp;blnIncludeLogo=<xsl:value-of select="//page/BrochurePreferences/blnIncludeLogo"/>&amp;blnIncludeContact=<xsl:value-of select="//page/BrochurePreferences/blnIncludeContact"/>&amp;blnUseHFSpace=<xsl:value-of select="//page/BrochurePreferences/blnUseHFSpace"/>&amp;blnIncludeDetails=<xsl:value-of select="//page/BrochurePreferences/blnIncludeDetails"/>&amp;blnCoverInlude=<xsl:value-of select="//page/BrochurePreferences/blnCoverInlude"/>&amp;blnBrochuresLayOut=<xsl:value-of select="//page/BrochurePreferences/blnBrochuresLayOut"/>&amp;MainProfilePhotoOnly=<xsl:value-of select="//page/BrochurePreferences/blnMainProfileOnly"/>&amp;fldUserFontFace=<xsl:value-of select="//page/BrochurePreferences/blnFontName"/>&amp;fldUserFontSize=<xsl:value-of select="//page/BrochurePreferences/blnFontSize"/>&amp;blnLayout=<xsl:value-of select="//page/BrochurePreferences/blnLayout"/>&amp;intPaperSize=<xsl:value-of select="//page/BrochurePreferences/intPaperSize"/>&amp;OtherSalesman=-2&amp;curr_id=<xsl:value-of select = "//page/curr_id"/>&amp;measure_id=<xsl:value-of select = "//page/measure_id"/>&amp;ph=1&amp;print_full_listing=1&amp;template=1&amp;blnBrochureConsumer=1',null,'height=500,width=700,resizable=yes,scrollbars=yes')
																		</xsl:attribute>
																	</xsl:otherwise>
																</xsl:choose>
																<img src="{$img_path_templates}/{$header_bg_color}/buttons/print.gif" border="0" hspace="2" vspace="4"/>
															</a>
														</xsl:if>
														<br/>
														<a href="main.asp?-vessel_basic_info.asp-&amp;vessels_id={$next_vessels_id}&amp;curr_id={//page/curr_id}" class="linkbold"><font color="{$color_main_first1}">More Info</font></a>
													</center>
												</td>
											</tr>
											<tr>
												<td colspan="2">
													<table cellpadding="2" cellspacing="1" bgcolor="{$bg_pagecolor}" width="100%">
														<tr>
															<td bgcolor="{$bg_c_bot}" class="titleblack">&#160;
																<font color="{$link_c_menu}">Communications:</font>
																&#160;&#160;
																<a href="{$root}main.asp?-email_send.asp-&amp;vessel_id={$next_vessels_id}&amp;curr_id={//page/curr_id}" title="Send Email" class="linkbold"><font color="{$link_c_menu}">Send Email</font></a>
																<xsl:if test="string-length(../row[$next_position]/col[@name='im_link']) > 0">
																	&#160;&#160;
																	<a href="{../row[$next_position]/col[@name='im_link']}" title="Chat on-line" class="linkbold"><font color="{$link_c_menu}">Chat on-line</font></a>
																</xsl:if>
																<xsl:if test="string-length(../row[$next_position]/col[@name='skype_name']) > 0">
																	&#160;&#160;
																	<a href="skype:{../row[$next_position]/col[@name='skype_name']}?call" title="Skype Me" class="linkbold"><font color="{$link_c_menu}">Skype Me</font></a>
																</xsl:if>
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</xsl:if>
							</xsl:if>
						</tr>
					</xsl:for-each>
				</table>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>

	<xsl:template name="location">
		<xsl:param name="country"/>
		<xsl:param name="city"/>
		<xsl:param name="state"/>
		<xsl:if test="string-length($city)>0">
			<xsl:value-of select="$city"/>
		</xsl:if>
		<xsl:if test="string-length($city)>0 and ((string-length($state)>0 and not($state = '--Not Specified--')) or string-length($country)>0)">,&#160;</xsl:if>
		<xsl:if test="string-length($state)>0 and not($state = '--Not Specified--')">
			<xsl:value-of select="$state"/>,&#160;
		</xsl:if>
		<xsl:if test="string-length($country)>0">
			<xsl:value-of select="$country"/>
		</xsl:if>
	</xsl:template>

	<xsl:template name="engine">
		<xsl:value-of select="col[@name='engine_count']"/>
		<xsl:if test="string-length(col[@name='engine_maker'])>0">,<br/><xsl:value-of select="col[@name='engine_maker']"/></xsl:if>
		<xsl:if test="string-length(col[@name='engine_model'])>0">,<br/><xsl:value-of select="col[@name='engine_model']"/></xsl:if>
	</xsl:template>

	<xsl:template name="location_table">
		<xsl:param name="country"/>
		<xsl:param name="city"/>
		<xsl:param name="state"/>
		<xsl:if test="string-length($city)>0">
			<xsl:value-of select="$city"/>
		</xsl:if>
		<xsl:if test="string-length($city)>0 and ((string-length($state)>0 and not($state = '--Not Specified--')) or string-length($country)>0)">,<br/></xsl:if>
		<xsl:if test="string-length($state)>0 and not($state = '--Not Specified--')">
			<xsl:value-of select="$state"/>
			<xsl:if test="string-length($country)>0">,<br/></xsl:if>
		</xsl:if>
		<xsl:if test="string-length($country)>0">
			<xsl:value-of select="$country"/>
		</xsl:if>
	</xsl:template>
</xsl:stylesheet>
